package com.vil.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import com.vil.entity.Active;

@Mapper
@Repository
public interface ActiveMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Active record);

    int insertSelective(Active record);

    Active selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Active record);

    int updateByPrimaryKey(Active record);
    
//    判断活动是否存在
//    @Select("select count(1) from active where village=#{village}")
//    int isExist(@Param("village")String village);
    
    List<Active> getListByManyConditions(Active record);
    
//    List<Active> getListByManyConditions(String village);
    
  //批量删除
    int deleteMany(Long[] array);

}